import request from '@/utils/request'

// 查询销售退货申请列表
export function listSaleBackRequest(query) {
  return request({
    url: '/xiaoshou/saleBackRequest/list',
    method: 'get',
    params: query
  })
}

// 查询销售退货申请详细
export function getSaleBackRequest(id) {
  return request({
    url: '/xiaoshou/saleBackRequest/' + id,
    method: 'get'
  })
}

// 新增销售退货申请
export function addSaleBackRequest(data) {
  return request({
    url: '/xiaoshou/saleBackRequest',
    method: 'post',
    data: data
  })
}

// 修改销售退货申请
export function updateSaleBackRequest(data) {
  return request({
    url: '/xiaoshou/saleBackRequest',
    method: 'put',
    data: data
  })
}

// 删除销售退货申请
export function delSaleBackRequest(id) {
  return request({
    url: '/xiaoshou/saleBackRequest/' + id,
    method: 'delete'
  })
}
